package com.company.project.application.dto.file;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

/**
 * =================================
 * <p>
 * Created by cjj on 18-9-1.
 * <p>
 * 描述: 文件上传返回的对象
 */

public class FileResult {

    //上传的文件名
    private String name;

    //文件地址
    private String url;

    //文件格式
    private String pattern;

    //创建时间
    @JSONField(format = "yyyy-MM-dd")
    private Date createDate;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getPattern() {
        return pattern;
    }

    public void setPattern(String pattern) {
        this.pattern = pattern;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    @Override
    public String toString() {
        return "FileResult{" +
                "name='" + name + '\'' +
                ", url='" + url + '\'' +
                ", pattern='" + pattern + '\'' +
                ", createDate=" + createDate +
                '}';
    }
}
